package com.qbw.core.jpush;

import android.content.Context;

import com.qbw.app.Config;
import com.qbw.l.L;

import cn.jpush.android.api.JPushInterface;

/**
 * @author qinbaowei
 * @date 2017/5/25
 * @email qbaowei@qq.com
 */

public class JPushUtil {

    public static void init(Context context) {
        JPushInterface.setDebugMode(Config.isDeveloperChannel());
        JPushInterface.init(context);
        if(JPushInterface.isPushStopped(context)) {
            L.GL.w("[JIGUANG]推送开关是关着的状态");
            JPushInterface.resumePush(context);
        }
    }

}
